<template>
    <div>
        <button @click="handleLog">点击</button>
    </div>
</template>

<script>
export default {
    name: 'DomeIndex',

    data() {
        return {
            count:0
        };
    },

    mounted() {
        this.addCount();
    },

    methods: {
        handleLog(){

        },
        addCount(){
            this.count++
            console.log(this.count);
        }
    },
};
</script>

<style lang="scss" scoped>

</style>